﻿Imports System.Net.NetworkInformation
Imports System.Net
Imports System.Management

Class MainWindow


    Private Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded

        Me.DataContext = New MainModel

    End Sub

    Private Async Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        Await TryCast(Me.DataContext, MainModel).SynTunlrDNS()
    End Sub

    Private Sub Button_Click_2(sender As Object, e As RoutedEventArgs)
        TryCast(Me.DataContext, MainModel).SelectedInterface.ClearDNS = True
    End Sub

End Class



